A trivial fix. login_unconditionally needs to be called with
authorEwan Mellor <ewan@xensource.com>
Tue, 28 Nov 2006 18:41:42 +0000 (18:41 +0000)
committerEwan Mellor <ewan@xensource.com>
Tue, 28 Nov 2006 18:41:42 +0000 (18:41 +0000)
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xend/XendAuthSessions.py

index 616724b96b32e75d2aa432f98a3b622453050002..4081177597005d50ce83495672c5258e77d61086 100644 (file)
@@ -55,7 +55,7 @@ class XendAuthSessions:
         @return: Session UUID
         """
         if self.is_authorized(username, password):
-            return login_unconditionally(username)
+            return self.login_unconditionally(username)
 
         raise XendError("Login failed")